package com.uam.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uam.db.model.dto.UserListDTO;
import com.uam.db.model.vo.UserListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserListMapper extends BaseMapper<UserListVO> {

    IPage<UserListVO> selectUesrList(Page<UserListVO> page, @Param("userListDTO") UserListDTO userListVO);

    int editPassword(@Param("userId")Long userid, @Param("password")String ps);

    List<Long> selectAdminIds();

    int deleteUserByIds(@Param("userIds")List<Long> userIds, @Param("adminIds")List<Long> adminIds);
}
